-
Notifications
You must be signed in to change notification settings - Fork 473
Update build.gradle setup #209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update build.gradle setup #209
Conversation
0fe0f8d
to
a60dc54
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your input @friederbluemle. I like this approach more - opting out instead of removing.
Also, please remove getExtOrDefault and ** getExtOrIntegerDefault** functions, as they're no longer used.
Out of curiosity - why would you open this lib as a standalone project? It makes more sense to test it directly in Android env, by running app and using the module (Unless you're writing some tests or gradle scripts).
a60dc54
to
5568e4c
Compare
@krizzu - Thanks for the review. I addressed your comments, and also removed the two "getExtOrDefault" (I thought I removed them earlier, but missed it ;)) |
This also updates Android Gradle plugin to 3.5.0.
5568e4c
to
3b0fcc4
Compare
Thanks a lot @friederbluemle @dulmandakh |
Summary
A slightly different approach to #207
This wraps the Android Gradle plugin dependency in the
buildscripts
section ofandroid/build.gradle
in a conditional:The Android Gradle plugin is only required when opening the project stand-alone, not when it is included as a dependency. By doing this, the project opens correctly in Android Studio, and it can also be consumed as a native module dependency from an application project without affecting the app project (avoiding unnecessary downloads/conflicts/etc).
Test Plan
What's required for testing (prerequisites)?
Android Studio and/or Gradle installed locally.
What are the steps to reproduce (after prerequisites)?
Open
android
in Android Studio:Or:
Generate a Gradle wrapper on the fly, and build on command line:
cd android/ gradle wrapper --gradle-version 5.4.1 --distribution-type all ./gradlew build
Successfully verified and tested on:
Once approved, please use a normal GitHub merge (i.e. NO rebase/squash merge) to integrate the commit(s) from the PR head branch. The changes are broken up into meaningful, atomic commits, and my branch should already be up-to-date with the latest base branch. If it isn't, or if you want me to change anything, please let me know, and I will update the branch as soon as possible. Thank you!